
<!--container-->
<div class="container container-gary">
    <!-- member index -->
    <div class="m-ptb wrap clearfix">
        {include file="common@public/_personal_left" /}
        <div class="member-right">
            <div class="member-sign clearfix"><b>发票申请</b></div>
            <div class="member-order min-height">
                <div class="m-order-enter clearfix">
                    <div class="m-order-left m-l-bill">
                        <div class="m-order-item">
                            <div class="m-order-text bill-w1">单据日期：</div>
                            <div class="m-order-write">
                                <input class="input-time laydate-icon" value="" id="start" type="text" placeholder="起始时间" />
                                <span class="m-order-plr">至</span>
                                <input class="input-time laydate-icon"  value="" id="end" type="text" placeholder="起始时间" />
                            </div>
                        </div>
                        <div class="m-order-item">
                            <div class="m-order-text bill-w1">单据编号：</div>
                            <div class="m-order-write">
                                <input class="m-input-small bill-w2" id="no" type="text" placeholder="请输入订单号" />
                            </div>
                        </div>
                    </div>
                    <div class="m-order-right m-r-bill">
                        <input class="m-btn-color" type="button" value="查询"  onclick="jump()"/>
                    </div>
                </div>

                <div class="redpacked-title clearfix">
                    <div class="redpacked-t-l">
                        <span class="current">全部白条</span><span>待还款</span><span>已退款</span><span>已还款</span>
                    </div>
                </div>

                <div class="whitebar-content">
                    <div class="member-thead clearfix">
                        <div class="whitebar-t-w1">
                            <div class="checked-total"><input class="ck_all" tabindex="1" type="checkbox"><label for="">全选</label></div>
                        </div>
                        <div class="whitebar-t-w2">还款单号</div>
                        <div class="whitebar-t-w3">订单时间</div>
                        <div class="whitebar-t-w4">支付方式</div>
                        <div class="whitebar-t-w5">还款状态</div>
                        <div class="whitebar-t-w6">还款时间</div>
                        <div class="whitebar-t-w7">还款金额</div>
                        <div class="whitebar-t-w7">操作管理</div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="1" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="2" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="3" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="4" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="5" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="6" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="7" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="8" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="9" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="10" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="11" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25021.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="12" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25321.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="13" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25421.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="14" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25821.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="15" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">微信支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="blue1">已还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25621.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="gary" href="my-whitebar-data.shtml">查看详情</a></div>
                    </div>
                    <div class="address-item">
                        <div class="add-i-total whitebar-t-w1">
                            <div class="checked-total"><input tabindex="1" type="checkbox" class="ck_item" name="items"></div>
                        </div>
                        <input class="orderid" value="16" style="display: none">
                        <div class="add-i-total whitebar-t-w2">OD1564654423</div>
                        <div class="add-i-total whitebar-t-w3">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w4">支付宝支付</div>
                        <div class="add-i-total whitebar-t-w5"><span class="red">待还款</span></div>
                        <div class="add-i-total whitebar-t-w6">2017-03-23</div>
                        <div class="add-i-total whitebar-t-w7">25721.00</div>
                        <div class="add-i-total whitebar-t-w7"><a class="whitebar-color" href="my-whitebar-data1.shtml">立即还款</a></div>
                    </div>
                </div>

                <div class="inpuire-b-select clearfix">
                    <div class="inpuire-left">
                        <div class="checked-total"><input class="ck_all" tabindex="1" type="checkbox"><label for="">全选</label></div>
                    </div>
                    <div class="inpuire-center"><input type="button" value="申请发票" onclick="Apply()"></div>
                    <div class="pager address-pager">
                        <a href="" title="First page">首页</a> <a href="" class="Previous page">上一页</a>
                        <a href="" title="">1</a> <span class="current">2</span> <span class="page-line">...</span> <span class="disabled">下一页</span> <span class="disabled">末页</span>
                        <em>到第</em><input class="page-input" type="text" /><i>页</i><input class="page-btn" type="button" value="确认" />
                    </div>
                </div>
            </div>

        </div>
    </div>

</div>

<!-- footer -->
<!--#include file="includes/foot.html"-->



<!-- check -->
<script src="/Public/static/home/js/icheck.js"></script>
<script type="text/javascript" src="/Public/static/home/js/laydate.js"></script>
<!-- menu -->
<script type="text/javascript" src="/Public/static/home/js/menu.js"></script>
<script>
    $(function(){
        //top select
        $(".top-select").mouseover(function () {
            $(".top-s-text").show();
        })
        $(".top-select").mouseout(function () {
            $(".top-s-text").hide();
        })
        $(".top-s-text div").click(function () {
            var selecttext = $(this).text();
            $(".top-s-head span").text(selecttext);
            $(this).parent(".top-s-text").hide()
        })
        // top code
        var turn = function(target,time,opts){
            target.find('.top-code').hover(function () {
                $(this).find('.top-c-img').stop().animate(opts[0], time, function () {
                    $(this).hide().next().show();
                    $(this).next().animate(opts[1],time);
                });
            },function(){
                $(this).find('.top-c-text').animate(opts[0], time, function () {
                    $(this).hide().prev().show();
                    $(this).prev().animate(opts[1],time);
                });
            });
        }
        var verticalOpts = [{'width':0},{'width':'80px'}];
        turn($('.top-right'), 150, verticalOpts);
        //menu all
        $(".menu-all div").mouseenter(function () {
            $(this).addClass("current");
            $(".submenu").show();
        })
        $(".menu-all div").mouseleave(function () {
            $(this).removeClass("current");
            $(".submenu").hide();
        })
        $(".submenu").mouseenter(function(){
            $(this).show();
            $(".menu-all div").addClass("current")
        })
        $(".submenu").mouseleave(function(){
            $(this).hide();
            $(".menu-all div").removeClass("current")
        })
        //left submenu
        $(".submenu ul li").each(function () {
            var $this = $(this);
            var $children = $this.find('.submenu-pro');
            var $otherChildren = $this.siblings('li').find('.submenu-pro');
            var $childrenList = $children.children('.submenu-total');
            $this.on({
                'mouseenter': function () {
                    $children.css({ 'display': 'block', 'width': 221 * parseInt($childrenList.size()) });
                    $otherChildren.css('display', 'none');
                },
                'mouseleave': function () {
                    $children.css('display', 'none');
                }
            })
        });
        //input
        $('.checked-total input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%'
        });
        $('.ck_item').on('ifChanged', function (event) {
            showCheckbox();
        });
        $('.ck_all').on('ifChecked', function (event) {
            $('.checked-total input').iCheck('check');
        });
        $('.ck_all').on('ifUnchecked', function (event) {
            $('.checked-total input').iCheck('uncheck');
        });
        //member left
        $(".member-l-title").click(function(){
            $(this).parent(".member-l-list").toggleClass("m-current");
            $(this).parent(".member-l-list").find("ul").slideToggle()
        })
        //content height
        $(".member-left").height($(".member-right").height())
        //cart del
        $(".whitebar-del").click(function(){
            $(".total-mask,.total-content").show()
        })
        $(".cart-d-icon i,.cart-d-gary").click(function(){
            $(".total-mask,.total-content").hide()
        })
    })
    function showCheckbox() {
        if ($('.ck_item').size() == $('.ck_item:checked').size()) {
            $('.ck_all').prop("checked", true).iCheck('update');
        } else {
            $('.ck_all').prop("checked", false).iCheck('update');
        }
    }


    //date
    !function () {
        laydate.skin('molv');//切换皮肤，请查看skins下面皮肤库
    }();
    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY-MM-DD',
        min: '1996-06-16', //设定最小日期为当前日期 laydate.now()
        max: '2099-06-16', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
            $(".laydate-icon").first().addClass("current");
        }
    };
    var end = {
        elem: '#end',
        format: 'YYYY-MM-DD',
        min: '1996-06-16',
        max: '2099-06-16',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，充值开始日的最大日期
            $(".laydate-icon").eq(1).addClass("current");
        }
    };
    laydate(start);
    laydate(end);

 //申请发票
    function Apply(){
        var orders=new Array();
        $(".address-item .checked-total .checked").each(function(){
            orders.push($(this).parents('.address-item').find('.orderid').val());
        })
        $.ajax({
            type:'post',
            url:"{:url('invoice/getorders')}",
            data:{orders:orders},
            success:function(data){

            }
        })
    }
</script>
</body>
</html>